import request from "../request";
const baseURL = request.baseURL;
const subPath = "/profile";
const url = baseURL + subPath;
export default {
  title: "我的页面接口",
  name: "profile",
  url,
  pageBaseURL: request.pageBaseURL,
  updatePhoneNumber: (params) =>
    request.post(`${url}/updatePhoneNumber`, params),
  getUserInfo: (params) => request.get(`${url}/getUserInfo`, { params }),
  updateAddress: (params) => request.post(`${url}/updateAddress`, params),
  insertAddress: (params) => request.post(`${url}/insertAddress`, params),
  deleteAddress:(params) => request.post(`${url}/deleteAddress`, params),
  uploadAvatar: (params) => request.post(`${url}/uploadAvatar`, params),
  updateUserInfo: (params) => request.post(`${url}/updateUserInfo`, params),
  getAgreement: (params) => request.get(`${url}/getAgreement`, { params }),
  getStage: (params) => request.get(`${url}/getStage`, { params }),
  updateStage: (params) => request.post(`${url}/updateStage`, params),
  insertStage: (params) => request.post(`${url}/insertStage`, params),
  deleteStage:(params) => request.post(`${url}/deleteStage`, params),
  getAvatar: (params) => request.post(`${url}/getAvatar`, params),
  insertCrashFeedback: (params) =>
    request.post(`${url}/insertCrashFeedback`, params),
  insertComplaintFeedback: (params) =>
    request.post(`${url}/insertComplaintFeedback`, params),
  getUserOrder: (params) => request.post(`${url}/getUserOrder`, params),
  getGoodsImage: (params) => request.post(`${url}/getGoodsImage`, params),
  updateSignForStatusAndSignForTime: (params) =>
    request.post(`${url}/updateSignForStatusAndSignForTime`, params),
};
